import request from '@/utils/request'

// 查询复审周期记录列表
export function listRecheck(query) {
	return request({
		url: '/spm/recheck/list',
		method: 'get',
		params: query
	})
}

// 查询复审周期记录详细
export function getRecheck(recheckId) {
	return request({
		url: '/spm/recheck/' + recheckId,
		method: 'get'
	})
}

// 新增复审周期记录
export function addRecheck(data) {
	return request({
		url: '/spm/recheck',
		method: 'post',
		data: data
	})
}

// 修改复审周期记录
export function updateRecheck(data) {
	return request({
		url: '/spm/recheck',
		method: 'put',
		data: data
	})
}

// 删除复审周期记录
export function delRecheck(recheckId) {
	return request({
		url: '/spm/recheck/' + recheckId,
		method: 'delete'
	})
}